var App = function() {
    var base_url = ""
    var nav_tap = function(){
        $('.js-nav').on('click',function(){
            $(this).addClass("active").siblings().removeClass("active");
        })
    }
    var logout  = function(){
        $('.js-logout').on('click',function(){
            window.location.href = base_url+"/admin/logout";
        })

    }
    return {
        //main function to initiate template pages
        init: function (baseUrl) {
            base_url = baseUrl;
            nav_tap();
            logout();
        }

    }
}();